package com.jingdong.enity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data

public class User {

    private Integer id;
    private String username;
    private String password;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthday;

    public User(Integer id, String username, LocalDate birthday) {
        this.id = id;
        this.username = username;
        this.birthday = birthday;
    }
}
